package cn.com.db.dao;


import cn.com.db.model.StoreDeck;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StoreDeckDao {
    void createStoreDeck(StoreDeck storeDeck);

    StoreDeck getStoreDeckById(@Param("id")String id);

    StoreDeck getStoreDeckOfStore(@Param("storeId")String storeId,
                                  @Param("deckId")String deckId);

    List<StoreDeck> getStoreDeck(@Param("store")String store,
                                 @Param("parent")String parent);

    Integer countStoreDeck(@Param("store")String store,
                           @Param("parent")String parent);

    void update(StoreDeck storeDeck);
}
